package com.gaotong.science.config;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.ControllerAdvice;

@ControllerAdvice
@NoArgsConstructor
@AllArgsConstructor
@Data
public class MyException extends  RuntimeException{
    @ApiModelProperty(value = "状态码")
    private Integer code;

    private String msg;

}
